package Behavior;
import Impl.ShootBehavior;
import Impl.Target;
import Model.*;
public class HunterShoot extends ShootBehavior {
    @Override
    public void shoot(Target target) {
        System.out.println("i am a hunter, i shoot");
        if(target instanceof Duck){
            Duck duck = (Duck) target;
            duck.getShot("died");
        }
    }
    @Override
    public void shoot() {
        System.out.println("error using");
    }
}
